const patterns = {
  name: "^[a-zA-Z_][0-9a-zA-Z_]{0,}$",
  phone: "^(13[0-9]|14[5|7]|15[0|1|2|3|4|5|6|7|8|9]|18[0|1|2|3|5|6|7|8|9])\\d{8}$",
  tel: "^(0\\d{2,3}-\\d{7,8}(-\\d{1,6})?)$",
  email: "^[\\w\\.-]+@[a-zA-Z\\d\\.-]+\\.[a-zA-Z]{2,}$",
  pwd: "^(?![0-9]+$)(?![a-z]+$)(?![A-Z]+$)(?!([^(0-9a-zA-Z)]|[\\(\\)])+$)([^(0-9a-zA-Z)]|[\\(\\)]|[a-z]|[A-Z]|[0-9]){8,}$",
  ip: "^(?=(\\b|\\D))(((\\d{1,2})|(1\\d{1,2})|(2[0-4]\\d)|(25[0-5]))\\.){3}((\\d{1,2})|(1\\d{1,2})|(2[0-4]\\d)|(25[0-5]))(?=(\\b|\\D))$",
  idCard: "(^\\d{15}$)|(^\\d{17}([0-9]|X)$)",
  url: "^https?://([\\w-]+\\.)+[\\w-]+(/[\\w-./?%&=]*)?$"
}